Ext.define("core.timePlan.controller.TimePlanController", {
    extend: "Ext.app.Controller",
    init: function () {
        var self = this;
        this.control({

            /**productgrid的刷新按钮事件*/
            "timePlanGrid button[ref='ref']": {
                click: function (_btn) {
                    var grid = _btn.up("timePlanLayout").down("timePlanGrid");
                    var store = grid.getStore();
                    store.load();
                }
            }
        });
    },
    views: ["core.timePlan.view.TimePlanLayout"
        , "core.timePlan.view.TimePlanGrid"
    ],
    stores: ["core.timePlan.store.TimePlanStore"],
    models: ["core.timePlan.model.TimePlanModel"]
});